KillIO
KillIO Terminate all current and pending device driver reads and writes
#include <Devices.h> Device Manager
OSErr KillIO(refNum );
short refNum ; device driver reference; as obtained via
returns Error Code; 0=no error
KillIO immediately terminates all communication with the device driver
indicated by the reference number. Unlike CloseDriver, it does NOT wait to
complete any pending I/O.
refNum is the reference number of an open device driver. See OpenDriver
.
Returns: an operating system Error Code. It will be one of:
noErr (0) No error
badUnitErr (-21) refNum doesn't match unit table
unitEmptyErr (-22) refnum specifies NIL handle in unit table